
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/discover'
    },
    {
      path:'/discover',
      name:'discover',
      component:()=>import('@/views/DiscoveryView.vue')
    },
    {
      path:'/mine',
      name:'mine',
      component:()=>import('@/views/MineView.vue')
    },
    {
      path:'/yun',
      name:'yun',
      component:()=>import('@/views/YunView.vue')
    },
    {
      path:'/video',
      name:'video',
      component:()=>import('@/views/VideoView.vue')
    },
    {
      path:'/seach',
      name:'seach',
      component:()=>import('@/views/SeachView.vue')
    },
  ]
})

export default router
